package com.itcast.domain;

public class Father {
    private String fname;

    public Father(String name) {
        System.out.println(name);
    }
    public Father() {

    }

    public String getFname() {
        return fname;
    }

    public void setFname(String fname) {
        this.fname = fname;
    }

    @Override
    public String toString() {
        return "Father{" +
                "fname='" + fname + '\'' +
                '}';
    }
}
